<?php
include_once '../library/config.php';
include_once '../library/popuphelper.php';
include_once '../model/stafflist.php';
include_once '../model/userlist.php';
include_once '../model/jifenlist.php';

StaffList::IsLogin();
$entity=new UserList();
$entity->request();
if($entity['action'])
{
    $entity->remove(array('id'));
    PoPupHelper::iframereload();
    $entity->update()->where('myid=?',array($entity['id']))->submit();
    if($entity['isrenzheng']=='2')
    {
        JiFenList::jifenuse($entity['id'],10,0);
    }
    PoPupHelper::showSucceed();
}
if($entity->select()->where('myid=? and isrenzheng=1',array($entity['id']))->get_first_rows()==FALSE)
{
    PoPupHelper::showDisabled();
}
?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>后台管理系统</title>
        <link href="/css/reset.css" rel="stylesheet" type="text/css" />
        <link href="/css/layout.css" rel="stylesheet" type="text/css" />
        <link href="/css/swfupload.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form method="post"  class="labelright nomargin">
            <div class="mainwrapassist notitletoolbar">
                <table class="wp100 cellbor">
                    <tr>
                        <td class="tr w80">认证：</td>
                        <td><input type="radio" id="isrenzheng2" name="isrenzheng" value="2" checked="checked" /> <label for="isrenzheng2">通过</label><input type="radio" id="isrenzheng3" name="isrenzheng" value="3" /> <label for="isrenzheng2">不通过</label></td>
                    </tr>
                    <tr>
                        <td class="tr">重审原因：</td>
                        <td><input name="shibaiyuanyin" /></td>
                    </tr>
                </table>
            </div>
            <div id="statusbar">
                <input type="hidden" name="action" value="update" />
                <button type="submit">审核</button>
            </div>
        </form>
        <?php include_once '../inc/js.html';?>
    </body>
</html>